﻿@model PlmTurnoverViewModel
@{
    Layout = null;
    ViewBag.Title = "职位人员记录";
}

@using (Html.BeginForm("SplitPageByPost", "PlmTurnoverCheck", null, FormMethod.Post, new { id = "pagerForm", onsubmit = "return divSearch(this,'rybd_bdjl_list');" }))
{
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@(ViewBag.numPerPage)" />
    <input type="hidden" name="input_post" value="@(ViewBag.Post)" />
     <input type="hidden" name="input_section" value="@(ViewBag.Section)" />
       
     <ul class="searchBar">
       
        <li><span>职位：</span>
            @*<input type="text" name="iput_post" value="@(ViewBag.iput_post)" />*@
            @Html.DropDownListFor(model => model.ThePersonnelRecordInfo.Pi_Post, new SelectList(ViewBag.listSuper, "Scd_Name", "Scd_Name"))
        </li>
      
        <li>
            <button type="submit" class="btn btn-success btn-xs">
                搜索</button>
        </li>
    </ul>
}
<div class="pageContent">
    <table class="table" width="100%" layouth="100" nowraptd="false" rel="rybd_bdjl_list">
        <thead>
            <tr>
                <th align="center">
                    序号
                </th>
                <th align="center">
                    标段
                </th>
                <th align="center">
                    姓名
                </th>
                <th align="center">
                    性别
                </th>
                <th align="center">
                    年龄
                </th>
                @*<th align="center">身份证号</th>*@
                <th align="center">
                    职位
                </th>
                <th align="center">
                    职称
                </th>
                <th align="center">
                    证书编号
                </th>
                <th align="center">
                    联系电话
                </th>
                <th align="center">
                    所属监理单位
                </th>
                <th align="center">
                    入职日期
                </th>
                <th align="center">
                    离职日期
                </th>
            </tr>
        </thead>
        <tbody>
            @{ int num = (ViewBag.pageNum - 1) * ViewBag.numPerPage;}
            @foreach (var item in Model.ThePersonnelRecordList)
            {
                num += 1;
                <tr target="ids" rel="@item.Pi_ID">
                    <td>@num
                    </td>
                     <td>@item.Pi_SectionName
                    </td>
                    <td>@item.Pi_Name
                    </td>
                    <td>@item.Pi_Sex
                    </td>
                    <td>@item.Pi_Age
                    </td>
                    @* <td>@item.Pi_IDNo</td>*@
                    <td>@item.Pi_Post
                    </td>
                    <td>@item.Pi_Professional
                    </td>
                    <td>@item.Pi_LicenseNum
                    </td>
                    <td>@item.Pi_Phone
                    </td>
                    <td>@item.Pi_UnittName
                    </td>
                    <td>@item.Pi_InTime
                    </td>
                    <td>@item.Pi_OutTime
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <div class="panelBar" style="border-bottom:none;">
        <div class="pages" style="float: right">
            <span>显示</span>
            <select class="comsplitpage" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value},'rybd_bdjl_list')">
                <option value="10" @(ViewBag.numPerPage == 10 ? "selected='selected'" : "")>10</option>
                <option value="20" @(ViewBag.numPerPage == 20 ? "selected='selected'" : "")>20</option>
                <option value="50" @(ViewBag.numPerPage == 50 ? "selected='selected'" : "")>50</option>
            </select>
            <span>条，共@(ViewBag.pagenumshown)页,@(ViewBag.totalcount)条</span>
        </div>
        <div class="pagination" style="margin:0px;float:left; margin-left:35%" rel="rybd_bdjl_list" totalcount="@(ViewBag.totalcount)" numperpage="@(ViewBag.numPerPage)" pagenumshown="10" currentpage="@(ViewBag.pageNum)">
        </div>
    </div>
</div>
